package cn.edu.scau.dao;

import java.util.List;

import cn.edu.scau.entity.Blog;
import cn.edu.scau.entity.User;

public interface UserDao extends BaseDao<User> {
	
	List<Blog> findUserBlogsByType(Integer userId,Integer pageNo,Integer pageSize,Integer type);
	
	long getBlogsMaxPageByType(Integer userId,Integer pageSize,Integer type);
	 
	void addUserBlog(Integer userId,Blog blog);
	
	boolean addUserColBlog(Integer userId,Integer blogId);
	
	boolean deleteBlogByType(Integer userId,Integer blogId,Integer type);
}
